import { request } from '@/utils'
// 商品类型接口(API)
export default {

  toggleRole: data => request.post('/basic-api/plugin/myPlugin', data),
  AddApi: data => request.post('/basic-api/commodity/business/add', data),
  myPluinApi: data => request.post('/basic-api/plugin/myPlugin', data),
  ListApi: params => request.get('/basic-api/commodity/business/list', { params }),
  DeleteApi: data => request.post('/basic-api/commodity/business/delete', data),
  checkPluginApi: data => request.post('/basic-api/plugin/checkPlugin', data),
  EditApi: data => request.post('/basic-api/commodity/business/edit', data),
  userPluginApi: data => request.post('/basic-api/plugin/userPlugin', data),
  otherUserPluginApi: data => request.post('/basic-api/plugin/pluginOtherUserPlugin', data),
  userListApi: (params = {}) => request.get('/basic-api/adminUserList', { params }),
}
